<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<meta http-equiv="content-type" content="text/html; charset=UTF-8">
		<title><s:text name="计量单位" />
		</title>
		<link rel="stylesheet" type="text/css" href="css/public.css">
		<script type="text/javascript" src="js/sorttable.js"></script>
		<script language="JavaScript" src="js/public.js"></script>
		<script type="text/javascript" src="js/date1.js"></script>
	</head>
	<body>
		<div id="info_all">
			<div id="info_top">
				<s:text name="计量单位" />
			</div>
			<!-- 主输入区 -->
			<!-- 功能按钮 -->
			<s:form action="searchMeasure.action" method="post"
				theme="simple" id="delrow">
				<div id="btn">
					<input type="button" value="新建"
						onClick="addAction('showAddMeasure');"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="修改"
						onClick="updateAction('showEditMeasure')"
						onFocus="this.blur()" onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
					<input type="button" value="删除"
						onClick="deleteAction('deleteMeasure')" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" class="btnsize" />
				</div>
				<div id="info_main">

					<div id="select">
						<hr>
						<table>
							<tr>
								<td>
									<s:text name="代码"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="measureunit.measureUnitCode" size="12"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
								<td>
									<s:text name="名称"></s:text>
									&nbsp;
								</td>
								<td>
									<s:textfield name="measureunit.measureUnitName" size="12"></s:textfield>
									&nbsp;&nbsp;&nbsp;
								</td>
							</tr>
						</table>
					</div>
				<div class="sele">
					<input type="submit" value="查询" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize" />
					<input type="reset" value="重置" onFocus="this.blur()"
						onmouseover="this.className='btnover'"
						onmouseout="this.className='btnout'" id="btnsize"/>
						<hr>
				</div>

					<!-- 信息显示栏 -->
					<div id="info_info0">
						<table id="info_table" width="500px" cellspacing=1px
							cellpadding=1px class="sortable">
							<thead>
								<tr>
									<th>
										<input type="checkbox" onClick="selectAll()" name="checkbox2" />
									</th>
									<th width="100px">
										<s:text name="代码"></s:text>
									</th>
									<th width="100px">
										<s:text name="名称"></s:text>
									</th>
									<th width="100px">
										<s:text name="换算率"></s:text>
									</th>
									<th width="100px">
										<s:text name="类别"></s:text>
									</th>
									<th width="120px">
										<s:text name="是否默认"></s:text>
									</th>
								</tr>
							</thead>
							<tbody>

								<s:if test="!measureDTOList.isEmpty">
									<s:iterator value="measureDTOList" status="status">
										<tr>
											<td>
												<s:checkbox name="rowlist"
													fieldValue="%{measureunit.measureUnitId}" theme="simple"
													value="false" />
											</td>
											<td>
												<s:property value="measureunit.measureUnitCode" />&nbsp;
											</td>
											<td>
												<s:property value="measureunit.measureUnitName" />&nbsp;
											</td>
											<td>
												<s:property value="measureunit.rates" />&nbsp;
											</td>
											<td>
												<s:property value="measuregroup.measureGroupName" />&nbsp;
											</td>
											<td>
												<s:if test="measureunit.isdefault == 0"> 否</s:if>
												<s:elseif test=" measureunit.isdefault == 1">是</s:elseif>
											</td>
										</tr>
									</s:iterator>
								</s:if>

							</tbody>
							<tfoot>
							</tfoot>
						</table>
						<script language="javascript">
	//("表格名称","奇数行背景","偶数行背景","点击后背景");
	mouseclick("info_table", "#ffffff", "#ffffff", "#e6f0fd");
	//("表格名称","奇数行背景","偶数行背景");
	//setcolor("t","#ffffff","#ffffff");
</script>
					</div>
				</div>
			</s:form>
		</div>
	</body>
</html>